<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>{$site_info.site_seo_title|default=''}</title>
    <meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
    <meta name="description" content="{$site_info.site_seo_description|default=''}"/>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <link rel="stylesheet" href="/static/fly/css/global.css">
</head>
<body>
    {include file='common/header' /}
    <div class="fly-home fly-panel">
        <img src="https://tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" alt="贤心">
        <i class="iconfont icon-renzheng" title="Fly社区认证"></i>
        <h1>
            {$user.username}
            <i class="iconfont icon-nan"></i>
            <!-- <i class="iconfont icon-nv"></i>  -->
            <i class="layui-badge fly-badge-vip">VIP3</i>
            <!--
            <span style="color:#c00;">（管理员）</span>
            <span style="color:#5FB878;">（社区之光）</span>
            <span>（该号已被封）</span>
            -->
        </h1>

        <p style="padding: 10px 0; color: #5FB878;">认证信息：作者</p>

        <p class="fly-home-info">
            <i class="iconfont icon-kiss" title="积分"></i><span style="color: #FF7200;">66666 积分</span>
            <i class="iconfont icon-shijian"></i><span>{$user.created_at} 加入</span>
            <i class="iconfont icon-chengshi"></i><span>来自淮北</span>
        </p>

        {if $user.sign}<p class="fly-home-sign">（{$user.sign}）</p>{/if}
        <!--
        <div class="fly-sns" data-user="">
            <a href="javascript:;" class="layui-btn layui-btn-primary fly-imActive" data-type="addFriend">加为好友</a>
            <a href="javascript:;" class="layui-btn layui-btn-normal fly-imActive" data-type="chat">发起会话</a>
        </div>
        -->
    </div>

    <div class="layui-container">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md6 fly-home-jie">
                <div class="fly-panel">
                    <h3 class="fly-panel-title">最近的文章</h3>
                    <ul class="jie-row">
                        {foreach $articles as $article}
                        <li>
                            {if $article.digest}<span class="fly-jing">精</span>{/if}
                            <a href="/article/{$article.id}" class="jie-title"> {$article.title}</a>
                            <i>{$article.created_at}</i>
                            <em class="layui-hide-xs">{$article.click}阅/{$article.comment}答</em>
                        </li>
                        {/foreach}
                        {if empty($articles)}
                        <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i
                                style="font-size:14px;">没有发表任何求解</i></div>
                        {/if}
                    </ul>
                </div>
            </div>

            <div class="layui-col-md6 fly-home-da">
                <div class="fly-panel">
                    <h3 class="fly-panel-title">最近的评论</h3>
                    <ul class="home-jieda">
                        <li>
                            <p>
                                <span>1分钟前</span>
                                在<a href="" target="_blank">tips能同时渲染多个吗?</a>中回答：
                            </p>
                            <div class="home-dacontent">
                                尝试给layer.photos加上这个属性试试：
                                <pre>
                                    full: true
                                </pre>
                                文档没有提及
                            </div>
                        </li>
                        <li>
                            <p>
                                <span>5分钟前</span>
                                在<a href="" target="_blank">在Fly社区用的是什么系统啊?</a>中回答：
                            </p>
                            <div class="home-dacontent">
                                Fly社区采用的是NodeJS。分享出来的只是前端模版
                            </div>
                        </li>

                        <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div> -->
                    </ul>
                </div>
            </div>
        </div>
    </div>
    {include file='user/footer' /}
</body>
</html>
